import {createRouter, createWebHistory} from 'vue-router'

const routes = [
    {
        path: '/',
        component: () => import('../views/Login/Login')
    },
    {
        path: '/appcontainer',
        component: () => import('../views/AppContainer/AppContainer'),
        children: [
            {
                path: '/appcontainer',
                redirect: '/dashboard'
            },
            {
                path: '/dashboard',
                component: () => import('../views/Menu/DashBoard')
            },
            {
                path: '/trademark',
                component: () => import('../views/Menu/TradeMark')
            },
            {
                path: '/attr',
                component: () => import('../views/Menu/Attr')
            },
            {
                path: '/spu',
                component: () => import('../views/Menu/Spu')
            },
            {
                path: '/sku',
                component: () => import('../views/Menu/Sku')
            },
            {
                path: '/permissionmanagement',
                component: () => import('../views/Menu/PermissionManagement')
            },
            {
                path: '/rolemanagement',
                component: () => import('../views/Menu/RoleManagement')
            },
            {
                path: '/menumanagement',
                component: () => import('../views/Menu/MenuManagement')
            },
        ]
    },

]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
